[#include "../common/taglibs.html"/]
<div class="modal-header">
	<button type="button" class="close" data-dismiss="modal" aria-hidden="true"></button>
	<h4 class="modal-title">[@spring.message code="playmethodrule.update.title"/]</h4>
</div>

<div class="modal-control">
	[@form.form commandName="updateDTO" method="POST" class="form-horizontal form"]
	<input type="hidden" name="format" value="json">
	<div class="modal-body">
		<div class="form-body">
			<div class="row">
				<div class="col-md-6">
					<div class="form-group">
						<label class="col-md-3 control-label">[@spring.message code="playmethodrule.update.form.label.deep"/]</label>
						<div class="col-md-9">
							[@spring.bind path="deep"]
							<input id="${status.expression}" name="${status.expression}" value="${status.value!}" type="text" class="form-control">
							[/@spring.bind]
						</div>
					</div>
				</div>
				<div class="col-md-6">
					<div class="form-group">
						<label class="col-md-3 control-label">[@spring.message code="playmethodrule.update.form.label.gameKind"/]</label>
						<div class="col-md-9">
							[@spring.bind path="gameKind"]
							<select id="${status.expression}" name="${status.expression}" class="bs-select form-control">
								[#list enums["net.lanelife.casino.caipiao.game.GameKind"]?values as item]
								<option value="${item.name()}" [#if item.name()==status.value]selected="selected"[/#if]>[@spring.message code="net.lanelife.casino.caipiao.game.GameKind."+item.name()/]</option>
								[/#list]
							</select>
							[/@spring.bind]
						</div>
					</div>
				</div>
			</div>
			<div class="row">
				<div class="col-md-6">
					<div class="form-group">
						<label class="col-md-3 control-label">[@spring.message code="playmethodrule.update.form.label.name"/]</label>
						<div class="col-md-9">
							[@spring.bind path="name"]
							<input id="${status.expression}" name="${status.expression}" value="${status.value!}" type="text" class="form-control">
							[/@spring.bind]
						</div>
					</div>
				</div>
				<div class="col-md-6">
					<div class="form-group">
						
					</div>
				</div>
			</div>
			<div class="row">
				<div class="col-md-6">
					<div class="form-group">
						<label class="col-md-3 control-label">[@spring.message code="playmethodrule.update.form.label.method"/]</label>
						<div class="col-md-9">
							[@spring.bind path="method"]
							<select id="${status.expression}" name="${status.expression}" class="bs-select form-control">
								[#list enums["net.lanelife.casino.caipiao.game.GameMethod"]?values as item]
								<option value="${item.name()}" [#if item.name()==status.value]selected="selected"[/#if]
								data-content="<span class='label lable-sm label-success'>${item.ordinal()}</span> [@spring.message code="net.lanelife.casino.caipiao.game.GameMethod."+item.name()/] <small class='muted text-muted'>${item.name()}</small>">
								[@spring.message code="net.lanelife.casino.caipiao.game.GameMethod."+item.name()/]
								</option>
								[/#list]
							</select>
							[/@spring.bind]
						</div>
					</div>
				</div>
				<div class="col-md-6">
					<div class="form-group">
						<label class="col-md-3 control-label">[@spring.message code="playmethodrule.update.form.label.selectorType"/]</label>
						<div class="col-md-9">
							[@spring.bind path="selectorType"]
							<select id="${status.expression}" name="${status.expression}" class="bs-select form-control">
								[#list enums["net.lanelife.casino.caipiao.game.SelectorType"]?values as item]
								<option value="${item.name()}" [#if item.name()==status.value]selected="selected"[/#if]>[@spring.message code="net.lanelife.casino.caipiao.game.SelectorType."+item.name()/]</option>
								[/#list]
							</select>
							[/@spring.bind]
						</div>
					</div>
				</div>
			</div>
			<div class="row">
				<div class="col-md-6">
					<div class="form-group">
						<label class="col-md-3 control-label">[@spring.message code="playmethodrule.update.form.label.separator"/]</label>
						<div class="col-md-9">
							[@spring.bind path="separator"]
							<input id="${status.expression}" name="${status.expression}" value="${status.value!}" type="text" class="form-control">
							[/@spring.bind]
						</div>
					</div>
				</div>
				<div class="col-md-6">
					<div class="form-group">
						<label class="col-md-3 control-label">[@spring.message code="playmethodrule.update.form.label.formatString"/]</label>
						<div class="col-md-9">
							[@spring.bind path="formatString"]
							<input id="${status.expression}" name="${status.expression}" value="${status.value!}" type="text" class="form-control">
							[/@spring.bind]
						</div>
					</div>
				</div>
			</div>
			<div class="row">
				<div class="col-md-6">
					<div class="form-group">
						<label class="col-md-3 control-label">[@spring.message code="playmethodrule.update.form.label.minchosen"/]</label>
						<div class="col-md-9">
							[@spring.bind path="minchosen"]
							<input id="${status.expression}" name="${status.expression}" value="${status.value!}" type="text" class="form-control">
							[/@spring.bind]
						</div>
					</div>
				</div>
				<div class="col-md-6">
					<div class="form-group">
						<label class="col-md-3 control-label">[@spring.message code="playmethodrule.update.form.label.maxchosen"/]</label>
						<div class="col-md-9">
							[@spring.bind path="maxchosen"]
							<input id="${status.expression}" name="${status.expression}" value="${status.value!}" type="text" class="form-control">
							[/@spring.bind]
						</div>
					</div>
				</div>
			</div>
			<div class="row">
				<div class="col-md-6">
					<div class="form-group">
						<label class="col-md-3 control-label">[@spring.message code="playmethodrule.update.form.label.position"/]</label>
						<div class="col-md-9">
							[@spring.bind path="position"]
							<input id="${status.expression}" name="${status.expression}" value="${status.value!}" type="text" class="form-control">
							[/@spring.bind]
						</div>
					</div>
				</div>
				<div class="col-md-6">
					<div class="form-group">
						<label class="col-md-3 control-label">[@spring.message code="playmethodrule.update.form.label.defaultPosition"/]</label>
						<div class="col-md-9">
							[@spring.bind path="defaultPosition"]
							<input id="${status.expression}" name="${status.expression}" value="${status.value!}" type="text" class="form-control">
							[/@spring.bind]
						</div>
					</div>
				</div>
			</div>
			<div class="row">
				<div class="col-md-6">
					<div class="form-group">
						<label class="col-md-3 control-label">[@spring.message code="playmethodrule.update.form.label.nonrepeatability"/]</label>
						<div class="col-md-9">
							[@spring.bind path="nonrepeatability"]
							<select id="${status.expression}" name="${status.expression}" class="bs-select form-control">
								[#list enums["net.lanelife.casino.caipiao.game.Nonrepeatability"]?values as item]
								<option value="${item.name()}" [#if item.name()==status.value]selected="selected"[/#if]>[@spring.message code="net.lanelife.casino.caipiao.game.Nonrepeatability."+item.name()/]</option>
								[/#list]
							</select>
							[/@spring.bind]
						</div>
					</div>
				</div>
				<div class="col-md-6">
					<div class="form-group">
						<label class="col-md-3 control-label">[@spring.message code="playmethodrule.update.form.label.isArbitrarily"/]</label>
						<div class="col-md-9">
							[@spring.bind path="isArbitrarily"]
							<select id="${status.expression}" name="${status.expression}" class="bs-select form-control">
								<option value="true" [#if status.value=="true"]selected="selected"[/#if]>[@spring.message code="net.lanelife.casino.caipiao.entity.PlayMethodRule.IsArbitrarily.TRUE"/]</option>
								<option value="false" [#if status.value=="false"]selected="selected"[/#if]>[@spring.message code="net.lanelife.casino.caipiao.entity.PlayMethodRule.IsArbitrarily.FALSE"/]</option>
							</select>
							[/@spring.bind]
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
	<div class="modal-footer">
		<button type="button" class="btn default" data-dismiss="modal">[@spring.message code="form.button.close"/]</button>
		<button type="submit" class="btn blue">[@spring.message code="form.button.submit"/]</button>
	</div>
	[/@form.form]
</div>

<script type="text/javascript">

$('#updateDTO').validate({
	rules: {
  	},
	messages:{
	}
});

</script>